cmake_minimum_required(VERSION 3.12 FATAL_ERROR)

project(Cylinder)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(VTK COMPONENTS
)

if (NOT VTK_FOUND)
  message(FATAL_ERROR "Cylinder: Unable to find the VTK build folder.")
endif()

# Prevent a "command line is too long" failure in Windows.
set(CMAKE_NINJA_FORCE_RESPONSE_FILE "ON" CACHE BOOL "Force Ninja to use response files.")
add_executable(Cylinder MACOSX_BUNDLE main.cpp



    vtktransformwidget.h vtktransformwidget.cpp
)

  target_link_libraries(Cylinder PRIVATE ${VTK_LIBRARIES})
# vtk_module_autoinit is needed
vtk_module_autoinit(
  TARGETS Cylinder
  MODULES ${VTK_LIBRARIES}
)
